<!doctype html>
<html lang="vi">
<head>
	<!-- Docs SEO tags -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width">
	<?php $this->displayMetaTags(); ?>
    <link rel="shortcut icon" href="./favicon.png">
    <!-- Docs Stylesheet -->
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/plugins/bootstrap-datepicker/bootstrap-datepicker.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/plugins/fullcalendar/fullcalendar.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/plugins/qtip2/jquery.qtip.min.css" media="screen" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/plugins/jquery-ui.min.css" media="screen">
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/plugins/bootstrap/css/bootstrap.min.css" media="screen">
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/styles.css" media="all">
    <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/plugins/jquery-1.10.2.min.js"></script>

	<!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
</head>

<body>
    <!-- Docs Header -->
	<?php $this->widget('Header'); ?>
    <!-- Docs Content -->
    <div class="container" id="content">
    	<!-- Docs Breadcrumb -->
    	<div id="breadcrumb">
            <div class="row">
                <div class="col-xs-12">
                <?php if(isset($this->breadcrumbs)):?>
                <?php $this->widget('zii.widgets.CBreadcrumbs', array(
                    'links'=>$this->breadcrumbs,
                    'separator' => '',
                    'homeLink'=>'<li>'.CHtml::link('Trang chủ', array('/Home/default/index')).'</li>',
                    'tagName' => 'ol',
                    'activeLinkTemplate' => '<li><a href="{url}">{label}</a></li>',
                    'inactiveLinkTemplate' => '<li class="active">{label}</li>',
                    'encodeLabel' => false,
                    'htmlOptions'=>array('class'=>'breadcrumb'),
                )); ?><!-- breadcrumbs -->
                <?php endif; ?>
                </div>
            </div>
        </div>
    	<?php echo $content; ?>
    </div>
    
    <!-- Docs Footer -->
    <?php $this->widget('Footer'); ?>
    <!-- Docs Script base -->
    <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/plugins/jquery-ui.min.js"></script>
    <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/plugins/bootstrap/js/bootstrap.min.js"></script>
    <!-- Docs Plugin -->
    <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/plugins/bootstrap-datepicker/bootstrap-datepicker.js"></script>
    	<!-- Calendar -->
    <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/plugins/fullcalendar/fullcalendar.min.js"></script>
	    <!-- qTip2 -->
    <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/plugins/qtip2/jquery.qtip.min.js"></script>
    	<!-- carouFredSel -->
    <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/plugins/jquery.carouFredSel-6.2.1-packed.js"></script>
    <!-- Docs SEO Script -->
    <script type="text/javascript" async="" src="http://www.google-analytics.com/ga.js"></script>

    <!-- Docs Script Application -->
    <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/apllication.js"></script>
    <script type="text/javascript">
	jQuery(document).ready(function() {
		App().initFacebookAds();
		App().initFullCalendar('<?php echo Yii::app()->createUrl('/Events/request/eventInMonth'); ?>', '<?php echo Yii::app()->createUrl('/Events/request/eventInDay'); ?>', '<?php echo Yii::app()->createUrl('/Events/categories/dayEvent'); ?>');
		App().initCarouFredSel();
        App().initLogs();
    });
	</script>
    <script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-40624462-1']);
    _gaq.push(['_trackPageview']);

    (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();
    </script>
</body>
</html>
